var allServer=({
	load: function (pageNum){
		$$.showPreloader("加载中");
		$.ajax({
			type : "POST",
			dataType : 'json',
			url : "../appointment/getList.do",
			data : {
				flag : 0 ,
				searchText : $("#keyword").val(),
				pageSize : 10,
				pageNumber : pageNum
			},
			success : function(data) {
				console.log(data);
				var html="";
				if(pageNum ==1){
					$("#peoplelist").html("");
				}
				if(data.rows!=null && data.rows.length>0){
					for(var i=0;i<data.rows.length;i++){
						html+="<ul><li class=\"item-content\" onclick=\"toLink('houseAppoDetail.html?appointmentId="+data.rows[i].appointmentId+"')\">";
						html+=" <div class=\"item-media\">";
				        html+=" </div><div class=\"item-inner\"> <div class=\"item-title-row\">";
				        html+="<div class=\"item-title\">"+data.rows[i].nickName+"预约 【 "+data.rows[i].houseName+"】</div>";
				        html+=" </div></li> </ul>";
					}
				}else{
					html+="<ul><li class=\"item-content\">";
					  html+=" 暂无数据...</li> </ul>";
					  $("#loadmore").hide();
				}
				$("#peoplelist").append(html);
				$$.hidePreloader();
			},
			error: function(){
				$$.hidePreloader();
			}
		});
	}
	
})